<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>系统基本信息</title>

    <link rel="shortcut icon" href="../favicon.ico">
    <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <!-- jqgrid-->
    <link href="../css/plugins/jqgrid/ui.jqgrid.css?0820" rel="stylesheet">
    <link href="../css/animate.css" rel="stylesheet">
    <link href="../css/style.css?v=4.1.0" rel="stylesheet">
    <link href="../css/plugins/summernote/summernote.css" rel="stylesheet">
    <link href="../css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
    <link href="../css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link rel="stylesheet" href="../css/zTreeStyle.css" type="text/css">
    <link href="../css/common.css" rel="stylesheet">
    <style>
        body{font-size: 14px}
        .row {
            border: 1px solid #ccc;
            margin: 0 auto;
        }
        .select1{width: 140px;height: 26px;padding: 2px }
        .addNewSystem,
        .lendAndNewSystem,
        .plAmendSystemName,
        .mapShowAllSystem,
        .rubish,
        .query,
        .lendExcel,
        .lendAllExcel,
        .emptyIf {
            padding: 2px 12px 9px;
            height: 24px;
            font-size: 14px
        }
        
     
        .colorRed{color: red}
        .trBackgroundColor {
            background: #c5e1fe
        }
     
        .col6pd1{padding: 10px 0;}
        .bqName{padding: 2px 4px;border-radius: 6px;background: #f66;cursor: pointer;}
    </style>
</head>

<body class="white-bg" style="color:#333;padding:0px;overflow-x:auto;">
    <div class="container"  style="width: 100%;overflow-x: auto;padding: 0" >
           <div class="row border-bottom white-bg">
        <div class="col-md-12 border_S padding_lr" style="background: #d0e0e0;line-height: 40px;text-align:left;font-size:18px">系统基本信息
        </div>
    </div>
    <div class="ibox-content">
           <form action="#" class="form-inline">
              <div class="form-group ibox-content hr-line-dashed" style="border:0">
                  <label for="systemName">系统名称<span class="colorRed">*</span>:</label>
                  <input type="text" class="form-control" id="systemName" name="systemName"><i class="colorRed" style="font-style: normal;">不允许英文状态下输入的单引号</i>
              </div>
              <div class="hr-line-dashed" ></div>
               <div class="form-group ibox-content" style="border:0">
                  <label for="systemName">系统编号<span class="colorRed">*</span>:</label>
                   <span> 70000</span>
              </div>
                <div class="hr-line-dashed" style="padding:0;margin:0"></div>
               <div class="form-group ibox-content" style="border:0">
                  <label for="salesMan">业务人员<span class="colorRed">*</span></label>
                 <input type="text" class="form-control" name="AllCompany"><a href="javascript:;">选择全公司</a><i class="colorRed" style="font-style: normal;">系统上级经销商的业务人员如果没有人，则系统业务人员必须填写</i>
              </div><br>
              <div class="form-group ibox-content" style="border:0">
                  <span class="bqName">张三<span>&times;</span></span>
                      <span class="bqName">李四<span>&times;</span></span>
                      <span class="bqName">王五<span>&times;</span></span>
              </div>
                 <div class="hr-line-dashed" style="padding:0;margin:0"></div>
                <div class="form-group ibox-content" style="border:0">
                 <label for="cusType">客户类型<span class="colorRed">*</span>:</label>
                   <select name="" id="cusType" class="form-control" name="cusType">
                            <option value="0">请选择</option>
                            <option value="1">区域KA客户</option>
                            <option value="2">区域KB客户</option>
                        </select>
              </div>
                 <div class="hr-line-dashed" style="padding:0;margin:0"></div>
                 <div class="form-group ibox-content" style="border:0">
                <label for="oneCType">一级渠道类型<span class="colorRed">*</span></label>
                    <select name="oneCType" id="oneCType" class="form-control">
                                    <option value="0">请选择</option>
                                    <option value="1">区域KA客户</option>
                                     <option value="2">区域KB客户</option>
                                </select>
                </div>
                  <div class="form-group ibox-content" style="border:0">
               <label for="twoCType">二级渠道类型<span class="colorRed">*</span></label>
                    <select name="twoCType" id="twoCType" class="form-control">
                                    <option value="0">请选择</option>
                                    <option value="1">区域KA客户</option>
                                     <option value="2">区域KB客户</option>
                                </select>
                </div>
                 <div class="hr-line-dashed" style="padding:0;margin:0"></div>
                   <div class="form-group ibox-content" style="border:0">
                   <label for="detailAddress">详细地址<span class="colorRed">*</span>:</label>
                   <input type="text" class="c4_input12 form-control" name="detailAddress" id="detailAddress">
              </div>
           </form>
            </div>
        </div>
    </div>
     <div class="row white-bg">
        <div class="col-md-12 padding_lr" style="background: #d0e0e0;line-height: 40px;text-align:left;font-size:18px">系统所属经销商信息 <button class="btn btn-primary addSystemToAngency" style="float: right;margin:3px 10px 0 0">添加</button>
        </div>
    </div>
     <table class="table table-bordered da_table white-bg" style="margin-bottom:0">
     <tr>
        <th>序号</th>
        <th>所属经销商</th>
        <th>经销商编码</th>
        <th>分区经理</th>
        <th>省办经理</th>
        <th>城市经理</th>
        <th>备注</th>
        <th>操作</th>
     </tr>
      <tr>
        <td class="NoId">1</td>
        <td>南京市佳和贸易有限公司</td>
        <td><a href="javascript:;">CU00001</a></td>
        <td><a href="javascript:;">张三</a></td>
        <td><a href="javascript:;">张三</a></td>
        <td><a href="javascript:;">张三</a></td>
        <td>&nbsp;</td>
        <td>默认经销商，不允许修改</td>
     </tr>
      <tr>
        <td class="NoId">2</td>
        <td><span class="bqName">安顺市佳和贸易有限公司<span class="delBqName">&times;</span></span></td>
        <td><a href="javascript:;">CU00001</a></td>
        <td><a href="javascript:;">张三</a></td>
        <td><a href="javascript:;">张三</a></td>
        <td><a href="javascript:;">张三</a></td>
        <td><input type="text" class="form-control"></td>
        <td><button class="btn btn-danger delThisTr">删除</button></td>
     </tr>
      <tr>
        <td class="NoId">3</td>
        <td>
        <span class="changeThis"><input type="text" class="form-control" style="display: inline-block;"><a href="javascript:;" class="changeThisA">选择</a></span>
        </td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td><input type="text" class="form-control"></td>
        <td><button class="btn btn-danger delThisTr">删除</button></td>
     </tr>
     </table>
    <div class="row border-bottom white-bg">
        <div class="col-md-12 padding_lr" style="background: #d0e0e0;line-height: 40px;text-align:left;font-size:18px">系统联络信息<span class="colorRed">(至少填写一条)</span><button class="btn btn-warning changeManInfo" style="float: right;margin:3px 10px 0 0">修改</button>
        </div>
    </div>
   <table class="table table-bordered da_table1 white-bg" style="margin-bottom:0">
   <tr>
        <th><label for=""></label></th>
        <th>电话</th>
        <th>手机</th>
        <th>传真</th>
        <th>电子邮件</th>
        <th>职务</th>
        <th><button class="btn btn-success addManInfo">添加</button></td>
   </tr>
   <tr style="display: none;">
   <td><input type="text" class="form-control" ></td>
   <td><input type="text" class="form-control">-<input type="text" class="form-control" ></td>
   <td><input type="text" class="form-control"></td>
   <td><input type="text" class="form-control">-<input type="text" class="form-control"></td>
   <td><input type="text" class="form-control" ></td>
   <td><input type="text" class="form-control" ></td>
   <td><button class="btn btn-danger delthis">删除</button></td>
   </tr>

   </table>
    <div class="row border-bottom white-bg border_S">
        <div class="col-sm-1" style="text-align: center;line-height: 50px">备注</div>
         <div class="col-sm-11">
                <div class="ibox float-e-margins" style="margin-bottom: 0">
                    <div class="ibox-content no-padding">

                        <div class="summernote">
                           
                        </div>

                    </div>
                </div>
            </div>
    </div>
    <div class="row border-bottom">
        <div class="col-md-12 border_S padding_lr" style="background: #d0e0e0;line-height: 40px;text-align:left;font-size:18px">系统管理日志
        </div>
    </div>
     <table class="table table-hover table-bordered da_table2 white-bg" style="margin-bottom:0">
     <tr>
        <th>时间</th>
        <th>姓名</th>
        <th>内容</th>
     </tr>
      <tr>
        <td>2017-12-12 10:32:30</td>
        <td>张三</td>
        <td>一大堆操作事件</td>
     </tr>
      <tr>
        <td>2017-12-12 10:32:30</td>
        <td>张三</td>
        <td>一大堆操作事件</td>
     </tr>
      <tr>
        <td>2017-12-12 10:32:30</td>
        <td>张三</td>
        <td>一大堆操作事件</td>
     </tr>
      <tr>
        <td>2017-12-12 10:32:30</td>
        <td>张三</td>
        <td>一大堆操作事件</td>
     </tr>
     </table>
     <div class="form-group white-bg" style="margin:20px 10px 20px 20px">
        <input type="file" id="exampleInputFile">
        <p class="help-block" style="color:#1295d2">注：最多上传15个文件，每个文件小于50M,支持格式：</p>
        <p class="help-block" style="color:#1295d2">jpg,bnp,gif,png,jpeg,tif,raw,doc,docx,xls,xlsx,ppt,pptx,txt,pdf,rar,zip,mp4,avi,rmvb,rm,mid,3gp,AVI,3GP,,mpg,mp3,wma,wav</p>
    </div>
       <div class="row sub_btn white-bg" style="width:100%;text-align:center;padding: 20px 0">
        <input type="button" class="btn btn-success" style="margin-right: 15px" value="提交">
        <input type="button" class="btn btn-warning" value="返回" onclick="back()">
    </div>
</div>
    <!-- 表格 -->



    <!-- 全局js -->
    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <script src="../js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="../js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!-- <script src="js/plugins/layer/layer.min.js"></script> -->

    <!-- 自定义js -->
    <script src="../js/plugins/summernote/summernote.min.js"></script>
    <script src="../js/plugins/summernote/summernote-zh-CN.js"></script>
    <!-- Peity -->
    <script src="../js/plugins/peity/jquery.peity.min.js"></script>

    <!-- 自定义js -->
    <script src="../js/content.js?v=1.0.0"></script>
    <script src="../js/plugins/sweetalert/sweetalert.min.js"></script>
    <script>
    /*系统所属经销商信息添加删除*/
        $(".addSystemToAngency").click(function(){
            var len=$(".da_table tr").length;
                 var str = ' <tr><td class="NoId">'+len+'</td><td><span class="changeThis"><input type="text" class="form-control" style="display: inline-block;"><a href="javascript">选择</a></span></td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td><input type="text" class="form-control"></td><td><button class="btn btn-danger delThisTr">删除</button></td></tr>'
                 $(".da_table tbody").append(str);
           
        })
        $(".da_table").on("click",".delThisTr",function(){
            $(this).parent().parent().remove();
            var len=$(".da_table tr").length;
            var NoId =$('.NoId');
            for(var i=0;i<len;i++){
                $(NoId[i]).html(i+1)
            }
        })
        $(".delBqName").click(function(){
            var str = '<span class="changeThis"><input type="text" class="form-control" style="display: inline-block;"><a href="javascript" class="changeThisA">选择</a></span>'
            $(this).parent().parent().html(str)
        })
        $(".changeThisA").click(function(){
            // 点击弹出框选择确定后
            var str = '<span class="bqName">安顺市佳和贸易有限公司<span class="delBqName">&times;</span></span>'
        })
        // 添加信息
         $(".addManInfo").on("click", function() {
                console.log(1)
                var str = '<tr><td><input type="text" class="form-control input1" ></td><td><input type="text" class="form-control input2">-<input type="text" class="form-control input22" ></td><td><input type="text" class="form-control input21"></td><td><input type="text" class="form-control input2">-<input type="text" class="form-control input22"></td><td><input type="text" class="form-control input21" ></td><td><input type="text" class="form-control input21" ></td><td><button class="btn btn-danger delthis">删除</button></td></tr>'
                $(this).parents(".da_table1").append(str);
            })
         $(document).on("click",".delthis",function(){
            console.log(1)
            $(this).parent().parent().remove();
         })

    </script>
    <script>
        $(document).ready(function () {

            $('.summernote').summernote({
                lang: 'zh-CN'
            });

        });
       function back(){
        window.history.go(-1)
       }
    </script>
    <script>
     

    </script>
</body>

</html>